package fi.profecons.csswindows.toolkit;

import fi.profecons.csswindows.Element;

public class Button extends Element {

	private String action;

	private String title;

	public Button(String title, String action) {
		super();
		this.title = title;
		this.action = action;
		addCommand("new Button('" + getId() + "','" + title + "','" + action
				+ "');");
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
